import request from './axios';

// 登录
export function login (params) {
  return request({
    url: 'user/login/login',
    method: 'post',
    params
  });
}
// 校验手机号或用户名是否存在
export function checkInfo (params) {
  return request({
    url: 'user/login/checkRegisterInfo',
    method: 'post',
    params
  });
}
// 注册
export function register (params) {
  return request({
    url: 'user/login/register',
    method: 'post',
    params
  });
}
// 删除token
export function deleteToken () {
  return request({
    url: 'user/login/deleteToken',
    method: 'get'
  });
}

export function getMenuList () {
  return request({
    url: 'user/menu/getMenuList',
    method: 'post'
  });
}

export function test () {
  return request({
    url: 'user/login/test',
    method: 'post'
  });
}
